-- GENERATED SPELL FOR [Phasing Soldier] --


function spell0_18556(pUnit, Event) --@Protection Aura,Self--
pUnit:FullCastSpellOnTarget(32828,pUnit)
pUnit:RegisterEvent('Sorts_18556', 591, 1)
end

function spell1_18556(pUnit, Event) --@Shield Bash,n/a--
pUnit:FullCastSpellOnTarget(11972,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18556', 8289, 1)
end

function Sorts_18556(pUnit, Event)
local choix_sorts_18556 = math.random(0, 1)
if choix_sorts_18556 == 0 then
pUnit:RegisterEvent('spell0_18556', 1, 1)
end
if choix_sorts_18556 == 1 then
pUnit:RegisterEvent('spell1_18556', 1, 1)
end
end

function mob18556_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18556', math.random(1500, 3000), 1)
end

function mob18556_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18556_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18556_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18556, 1, 'mob18556_Action')
RegisterUnitEvent(18556, 2, 'mob18556_Leave')
RegisterUnitEvent(18556, 3, 'mob18556_Kill')
RegisterUnitEvent(18556, 4, 'mob18556_Die')
